package com.xz.knowledgeDuplication.pattern.proxy.static_proxy;

/**
 * 售票点(代理类)
 *
 * @author 召
 * @date 2022-03-07 21:22:50
 */
public class ProxyPoint implements SellTickets{

    private TrainStation trainStation = new TrainStation();

    @Override
    public void sell() {
        System.out.println("代理点收取一些服务费用");
        trainStation.sell();
    }

    @Override
    public void show() {
        System.out.println("售票点");
        trainStation.sell();
    }

}
